package com.faithbj.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.faithbj.common.model.fm.FamilyMemberIncome;
import com.faithbj.dao.FamilyMemberIncomeDao;
import com.faithbj.service.FamilyMemberIncomeService;

@Service("familyMemberIncomeService")
public class FamilyMemberIncomeServiceImpl implements FamilyMemberIncomeService {

	@Resource
	private FamilyMemberIncomeDao familyMemberIncomeDao;

	@Override
	public void addOrUpdateFamilyMemberIncome(
			FamilyMemberIncome familyMemberIncome) {
		familyMemberIncomeDao.saveOrUpdate(familyMemberIncome);
	}

	@Override
	public FamilyMemberIncome getFamilyMemberIncomeByFmId(String fmId) {
		return familyMemberIncomeDao.getFamilyMemberIncomeByFmId(fmId);
	}

}
